<template>
  <div>
    <h1 v-upper="msg">我是根组件App</h1>
    <h2>{{ time | timeFormat }}</h2>
    <MyComponent/>
  </div>
</template>

<script>
import MyComponent from "@/components/MyComponent";
export default {
  name: "",
  data() {
    return {
      msg: "abc",
      time: Date.now(),
    };
  },
  //组件挂载完毕
  mounted() {
    this.$erha();
  },
  components: {
    MyComponent
  },
};
</script>

<style scoped>
</style>
